// src/main/java/com/example/cmd2/dto/LoginDto.java
package top.csh215.cmd2.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.*;


import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;


}
